package com.easylinkin.linkappapi.linkage.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;

import java.io.Serializable;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 转变为 执行模块与下行设备关联 纽带 change by 2020-9-3
 * </p>
 *
 * @author TongJie
 * @since 2020-05-18
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("linkage_config_ref_down_device")
@ApiModel("执行模块与下行设备关联")
public class LinkageConfigRefDownDevice extends Model<LinkageConfigRefDownDevice> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId("id")
    @ApiModelProperty(value = "主键", example = "")
    private String id;


    /**
     * 执行器id
     */
    @TableField("rule_execution_id")
    @ApiModelProperty(value = "执行器id", example = "")
    private String ruleExecutionId;

    /**
     * 设备编号
     */
    @TableField("device_code")
    @ApiModelProperty(value = "设备编号", example = "")
    private String deviceCode;

    /**
     * 排序序号
     */
    @TableField("sort_no")
    @ApiModelProperty(value = "排序序号", example = "")
    private Integer sortNo;

    /**
     * 组编号
     */
//    @TableField("group_number")
//    @ApiModelProperty(value = "组编号", example = "")
//    private Integer groupNumber;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
